#!/bin/bash

# 添加 VirtualBox 存储库
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib"

# 更新软件包列表
sudo apt-get update

# 安装 VirtualBox
sudo apt-get install virtualbox